package cn.edu.zjgsu.ito.dao;

import cn.edu.zjgsu.ito.model.OrderDetailInfomationView;
import cn.edu.zjgsu.ito.model.OrderDetailInfomationViewExample;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface OrderDetailInfomationViewMapper
{
	int countByExample(OrderDetailInfomationViewExample example);

	int deleteByExample(OrderDetailInfomationViewExample example);

	int insert(OrderDetailInfomationView record);

	int insertSelective(OrderDetailInfomationView record);

	List<OrderDetailInfomationView> selectByExample(
			OrderDetailInfomationViewExample example);

	int updateByExampleSelective(
			@Param("record") OrderDetailInfomationView record,
			@Param("example") OrderDetailInfomationViewExample example);

	int updateByExample(@Param("record") OrderDetailInfomationView record,
			@Param("example") OrderDetailInfomationViewExample example);

	String getTotalMoneyIn(@Param("beginTime") Date beginTime,
			@Param("endTime") Date endTime,
			@Param("states") List<Integer> states);
	
	String getTotalMoneyOut(@Param("beginTime") Date beginTime,
			@Param("endTime") Date endTime,
			@Param("states") List<Integer> states);
}